﻿/*document.writeln("<script language=javascript>");
document.writeln("<!--");
document.writeln("var LiveAutoInvite0=\'您好，来自%IP%的朋友\';");
document.writeln("var LiveAutoInvite1=\'来自首页的对话\';");
document.writeln("var LiveAutoInvite2=\' 网站商务通 主要功能：<br>1、主动邀请<br>2、即时沟通<br>3、查看即时访问动态<br>4、访问轨迹跟踪<br>5、内部对话<br>6、不安装任何插件也实现双向文件传输<br><br><b>如果您有任何问题请接受此邀请以开始即时沟通</b>\';");
document.writeln("//-->");
document.writeln("</script>");*/
document.writeln("<script language=\"javascript\" src=\"http://dft.zoosnet.net/JS/LsJS.aspx?siteid=DFT47338055&float=1&lng=cn\"></script>");


jQuery.fn.wait = function (a, b, f) {
    var c = b || -1;
    b = f || 20;
    var d = this,
        g = this.selector,
        e;
    this.length ? a && a.call(this) : e = setInterval(function () {
        c || clearInterval(e);
        0 >= c || c--;
        d = $(g);
        d.length && (a && a.call(d), clearInterval(e))
    }, b);
    return this
};

var index_arr = ["/", "/index.php", "/index.html", "/index.htm","/plus/view.php"]; 

//商务通中间弹窗
var swt_middle_ui = ["#LRdiv1", "#LRfloater1"],
    swt_middle_image = [520, 360, "url(/templets/default/css/images/swt3.gif) center no-repeat;"],
    swt_uiswt = [150, 50, 20, 100],
    swt_uieixt = [150, 50, 20, 265],
    swt_uiclose = [10, 10];

if ($(window).width() < 520) {
    //手机端
    swt_middle_image = [255, 170, "url(/templets/default/css/images/swt3_m.gif) center no-repeat;"];
    swt_uiswt = [127, 42, 0, 0];
    swt_uieixt = [127, 42, 0, 127];
};

if ($.inArray(window.location.pathname, index_arr) >= 0) {
    //禁止首页显示
    swt_middle_image = [0, 0, "none"];
    swt_uiswt = [0, 0, 0, 0];
    swt_uieixt = [0, 0, 0, 0];
};

var swt_middle_style = "width:" + swt_middle_image[0] + "px; height:" + swt_middle_image[1] + "px; margin: -" + swt_middle_image[1] / 2 + "px 0 0 -" + swt_middle_image[0] / 2 + "px; background:" + swt_middle_image[2] + "; position:fixed !important; z-index: 1200; top: 50%; left: 50%;box-shadow: 0 4px 16px 0 rgba(0,0,0,.26); border-radius: 6px;",
    swt_middle_html = '<a class="uibutton uiswt" href= "javascript:void(0)" style="width:' + swt_uiswt[0] + "px; height:" + swt_uiswt[1] + "px; bottom:" + swt_uiswt[2] + "px; left:" + swt_uiswt[3] + 'px;    position: absolute; z-index: 100; cursor:pointer;" title="点击咨询" onclick= "openZoosUrl();LR_HideInvite();return false;"></a><a class="uibutton uieixt" href= "javascript:void(0)" style="width:' + swt_uieixt[0] + "px; height:" + swt_uieixt[1] + "px; bottom: " + swt_uieixt[2] + "px; left: " + swt_uieixt[3] + 'px; position: absolute; z-index: 100; cursor:pointer;" title="稍后咨询"  onclick= "LR_HideInvite();LR_RefuseChat();return false;" ></a ><a class="uibutton uiclose" href="javascript:void(0)" style="top:' + swt_uiclose[0] + "px; right:" + swt_uiclose[0] + 'px; width: 30px; height: 30px;  position: absolute; z-index: 100; cursor:pointer;" title="关闭" onclick="LR_HideInvite();LR_RefuseChat();return false;"></a>';
$(swt_middle_ui[1]).wait(function () {
    $(this).removeAttr("style").attr("style", swt_middle_style);
    $(".uibutton").remove();
    $(this).append(swt_middle_html);
    $(swt_middle_ui[1] + " table," + swt_middle_ui[1] + " div").attr("style", "visibility: hidden !important;display:none;")
});
$(document).on("DOMNodeInserted", swt_middle_ui[0], function () {
    $(swt_middle_ui[1]).removeAttr("style").attr("style", swt_middle_style);
    0 == $(".uibutton").length && ($(".uibutton").remove(), $(swt_middle_ui[1]).append(swt_middle_html), $(swt_middle_ui[1] + " table," + swt_middle_ui[1] + " div").attr("style", "visibility: hidden !important;display:none;"))
});


//商务通侧边窗口
var swt_side_ui = ["#LRdiv0", "#LRfloater0"],
    swt_side_image = [0, 0, "left", "url(https://dft.zoosnet.net/site/47338055/onlineimgsrc_cn.gif) center no-repeat;"],
    swt_side_style = " width:" + swt_side_image[0] + "px; height:" + swt_side_image[1] + "px; margin: -" + swt_side_image[1] / 2 + "px 0 0; background:" + swt_side_image[3] + "; position:fixed !important; z-index: 1200; top: 50%; " + swt_side_image[2] + ":2px; border-radius: 2px;",
    swt_side_html = "";
if ($(window).width() < 520) {
    //手机端
    swt_side_image = [0, 0, "left", "url(https://dft.zoosnet.net/site/47338055/onlineimgsrc_cn.gif) center no-repeat;"];
};
if ($.inArray(window.location.pathname, index_arr) >= 0) {
    //禁止首页显示
    swt_side_image = [0, 0, "left", "none"];
};
$(swt_side_ui[1]).wait(function () {
    $(this).removeAttr("style").attr("style", swt_side_style);
    $(swt_side_ui[1] + " img").attr("style", "visibility: hidden !important;display:none;");
});

//手机端内容页图片全屏浏览显示
if ($(window).width() < 768) {
    $("head").append('<link href= "/templets/default/css/yzgimgbox.min.css" rel= "stylesheet" />');
    $("head").append('<script src="/templets/default/js/yzgimgbox.min.js"></script>');
    yzgimgBox.run('.u-html', {
        animation: 'slideIn',
        buttons: true
    });
};